package com.code.demo.mvp.base;

/**
 * Created by yangliguo on 2019/3/1.
 */

public interface IPresenter<T extends IView> {

    /**
     * 初始化
     */
    void onStart();

    /**
     * activity或fragment的onDestroy默认调用
     */
    void onDestroy();

    void attachView(T view);

    T getView();

}
